
# Library Paths
SDKRoot  = $(VFSDK)\$(SDK_VER)

#Target
TgtFile = dialer

#Files to Build
SrcFile1 = synctask
SrcFile2 = syncdial


# App Source Paths
SrcDir = $(SRC_ROOT)\COMM

AppModulesObjs = \
	$(OBJ_DIR)\$(SrcFile1).o \
	$(OBJ_DIR)\$(SrcFile2).o 
    
FoundationLibs =  \
$(ACT2000)\$(ACT_VER)\Output\RV\Files\Static\Debug\ACT2000.a  \
$(SDKRoot)\lib\Verix.lib

# Compiler Options
LFLAGS = -vv -map -s 3000 -h 3000

dialer.out :  $(FoundationLibs) $(OBJ_DIR)\synctask.o \
#dialer.out :  $(OBJ_DIR)\synctask.o \
    $(OBJ_DIR)\syncdial.o
    @Echo Running Linker Dialer...
    @$(SDKRoot)\bin\vrxcc $(LFLAGS) $(FoundationLibs) $(AppModulesObjs) -o $(@)
    @copy dialer.out $(SPFILES)\*.*
    @del dialer.*
    \SOFTPAY\VER30\TOOLS\FILESIGN -c $(SDKRoot)\CONFIG\K2SIGN.CRT -k $(SDKRoot)\CONFIG\K2SIGN.KEY -f $(SPFILES)\dialer.OUT -s $(SPFILES)\dialer.p7s -L
 
